package org.gitos.cloud.domain.server;

import org.springframework.jdbc.core.RowMapper;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by hc on 2016/3/29 0029.
 */
public class Inuser implements Serializable, RowMapper<Inuser> {
    private String uuid;
    private String user_uuid;
    private String inuser_token;
    private int mobile_os;

    public int getMobile_os() {
        return mobile_os;
    }

    public void setMobile_os(int mobile_os) {
        this.mobile_os = mobile_os;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUser_uuid() {
        return user_uuid;
    }

    public void setUser_uuid(String user_uuid) {
        this.user_uuid = user_uuid;
    }

    public String getInuser_token() {
        return inuser_token;
    }

    public void setInuser_token(String inuser_token) {
        this.inuser_token = inuser_token;
    }

    @Override
    public Inuser mapRow(ResultSet rs, int rowNum) throws SQLException {
        Inuser inuser = new Inuser();
        inuser.setUuid(rs.getString("uuid"));
        inuser.setInuser_token(rs.getString("inuser_token"));
        inuser.setUser_uuid(rs.getString("user_uuid"));
        inuser.setMobile_os(rs.getInt("mobile_os"));
        return inuser;
    }
}
